package com.ruoyi.student.runnables;

import com.ruoyi.student.domain.StudentYfyd;
import com.ruoyi.student.mapper.StudentYfydMapper;
import java.util.List;

/**
 * @author zhaoYuFei
 */
public class ExcelInsertRunnable implements Runnable{
    private List<StudentYfyd> list;
    private StudentYfydMapper studentYfydMapper;

    public ExcelInsertRunnable(List<StudentYfyd> list, StudentYfydMapper studentYfydMapper) {
        this.list = list;
        this.studentYfydMapper = studentYfydMapper;
    }

    public ExcelInsertRunnable() {
    }

    @Override
    public void run() {
        studentYfydMapper.insertList(list);
    }
}
